package com.dhcc.bpm.modules.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;

import java.util.Date;

/**
 * @ClassName Api
 * @Description api表实体类
 * @Author daina
 * @Date 2020/2/25 15:22
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Data
@TableName("opc_api_star")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ApiStar对象", description = "API星级评价表")
public class ApiStar extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* APIID
	*/
		@ApiModelProperty(value = "APIID")
		@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
		private Long opcApiId;
	/**
	* USERID
	*/
		@ApiModelProperty(value = "USERID")
		@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
		private Long opcUserId;
	/**
	* 星级
	*/
		@ApiModelProperty(value = "星级")
		@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
		private Long starRating;
	/**
	* 留言评论
	*/
		@ApiModelProperty(value = "留言评论")
		private String remark;
	/**
	* 评价日期
	*/
		@ApiModelProperty(value = "评价日期")
		private Date starDate;
	/**
	* 描述
	*/
		@ApiModelProperty(value = "描述")
		@TableField(value = "`describe`")
		private String describe;

}
